]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Consider drag events during page-switching as invalid
authorJonas Dreßler <verdre@v0yd.nl>
Fri, 24 Jun 2022 11:15:41 +0000 (13:15 +0200)
committerMarge Bot <marge-bot@gnome.org>
Wed, 1 Feb 2023 12:56:28 +0000 (12:56 +0000)
While there's an ongoing animation to switch pages, we should ignore all
drag events as those will end up moving the drag item to an unwanted
position.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2348>

js/ui/appDisplay.js

index 0d0b1e56aa01cc025a99edf09dd6c568986fe5ff..3c7d2f3d40c1402da27f950dfeee6de606d7613b 100644 (file)
@@ -798,6 +798,7 @@ var BaseAppView = GObject.registerClass({
 
         // Dragging over invalid parts of the grid cancels the timeout
         if (item === source ||
+            this._adjustment.get_transition('value') !== null ||
             page !== this._grid.currentPage ||
             dragLocation === IconGrid.DragLocation.INVALID ||
             dragLocation === IconGrid.DragLocation.ON_ICON) {